package mp.weixin.WXpublic.receive;

import mp.weixin.WXpublic.BaseReceiveMessage;
/**
 * 
 * mediaId 
 * 语音消息类型 format
 *	语音识别结果 recognition
 */
public class RVoiceEntity extends BaseReceiveMessage {

	private String mediaId;
	private String format;// 语音格式 如amr，speex等
	private String recognition;
	private long msgId;

	public long getMsgId() {
		return msgId;
	}

	public void setMsgId(long msgId) {
		this.msgId = msgId;
	}

	/**
	 * 语音消息媒体id，可以调用多媒体文件下载接口拉取数据。
	 * 
	 * @return
	 */
	public String getMediaId() {
		return mediaId;
	}

	public void setMediaId(String mediaId) {
		this.mediaId = mediaId;
	}

	/**
	 * 语音格式
	 * 
	 * @return
	 */
	public String getFormat() {
		return format;
	}

	public void setFormat(String format) {
		this.format = format;
	}

	/**
	 * 开发者开启或者关闭语音识别功能，对新关注者立刻生效，对已关注用户需要24小时生效
	 * 
	 * @return
	 */
	public String getRecognition() {
		return recognition;
	}

	public void setRecognition(String recognition) {
		this.recognition = recognition;
	}

	@Override
	public ReceiveTypeEnum getMsgType() {
		// TODO Auto-generated method stub
		return ReceiveTypeEnum.VOICE;
	}

}
